package com.ecotope.quartz.module.controller;

import com.ecotope.quartz.module.entity.AtmosphericStation;
import com.ecotope.quartz.module.service.AtmosphericStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author JK
 */
@RestController
@RequestMapping("/atmosphericStation")
public class AtmosphericStationController {


    @Autowired
    private AtmosphericStationService atmosphericStationService;

    @GetMapping("/list")
    public List<AtmosphericStation> list(AtmosphericStation atmosphericStation) {
        return atmosphericStationService.selectList(atmosphericStation);
    }

    @PostMapping("/insertInfoQ")
    public int insertinfoq(@RequestBody AtmosphericStation atmosphericStation) {
        return atmosphericStationService.insert(atmosphericStation);
    }

}
